import { Box } from "@mui/material"
import CommonTable from "../CommonTable/CommonTable"
import "./SharedPanel.css";
import { useState } from "react";
import { useLoaderData } from "react-router-dom";

function SharedPanel(props) {
    let { sharedFiles } = useLoaderData();

    return (
        <Box className="shared-panel">
            <h1>已分享</h1>
            <CommonTable rows={sharedFiles}/>
        </Box>
    )
}

export default SharedPanel